package com.websuites.proxy;

import java.net.Socket;

public class Connection 
{
	private Socket sock;
	private long lastUsed = 0L;
	private boolean canRecycle = true;
	
	public Connection(Socket sock) 
	{
		this.sock = sock;
	}

	public Socket getSocket() 
	{
		return sock;
	}

	public void setSocket(Socket sock) 
	{
		this.sock = sock;
	}

	public long getLastUsed() 
	{
		return lastUsed;
	}

	public void setLastUsed(long lastUsed) 
	{
		this.lastUsed = lastUsed;
	}

	public boolean isCanRecycle()
	{
		return canRecycle;
	}

	public void setCanRecycle(boolean canRecycle) 
	{
		this.canRecycle = canRecycle;
	}	
}
